Skip to content

worker-protocol: embed features in Version and add Number inner type#15161

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:version-number-subtype
Feb 6, 2026
Merged

worker-protocol: embed features in Version and add Number inner type#15161
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:version-number-subtype

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 6, 2026

Motivation

This commit embeds the negotiated FeatureSet directly into WorkerProto::Version and introduces a Number inner type with total ordering, so that Version itself (number + features) only has partial ordering.

Context

This is a follow-up to #15155, cleaning up the separate features fields on ReadConn/WriteConn.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store labels Feb 6, 2026
@Ericson2314
Copy link
Member

@Ericson2314
Copy link
Member

@amaanq amaanq force-pushed the version-number-subtype branch 2 times, most recently from 0deffc7 to 549a409 Compare February 6, 2026 18:03
@amaanq amaanq force-pushed the version-number-subtype branch 2 times, most recently from ed44f05 to be49329 Compare February 6, 2026 18:38
@amaanq amaanq force-pushed the version-number-subtype branch 3 times, most recently from e8da4c6 to 01f7674 Compare February 6, 2026 18:59
@amaanq amaanq changed the title worker-protocol: embed features in Version and add Number subtype worker-protocol: embed features in Version and add Number subtype Feb 6, 2026
@amaanq amaanq changed the title worker-protocol: embed features in Version and add Number subtype worker-protocol: embed features in Version and add Number inner type Feb 6, 2026
This commit embeds the negotiated `FeatureSet` directly into `WorkerProto::Version` and introduces a `Number` inner type with total ordering, so that `Version` itself (number + features) only has partial ordering. This is a follow-up to NixOS#15155, cleaning up the separate `features` fields on `ReadConn`/`WriteConn`.

Co-authored-by: Amaan Qureshi <git@amaanq.com>
@amaanq amaanq force-pushed the version-number-subtype branch from 01f7674 to 7eb23c1 Compare February 6, 2026 19:14
@Ericson2314 Ericson2314 enabled auto-merge February 6, 2026 19:33
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 6, 2026
Merged via the queue into NixOS:master with commit ca8e6ca Feb 6, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the version-number-subtype branch February 6, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants